{{useCss "/app-pages/css/pc/main.scss",(["/main.html","/","*"])}}
{{#include "/app-pages/pages/public/top.html"}}
<div class="main">
	<div class="navbar">
		<href class="nav" to="/main/ad.html">首页广告</href>
		<href class="nav" to="/main/article.html">发布文章</href>
		<href class="nav" to="/main/articlemanager.html">文章管理</href>
	</div>
	<div class="teleporter">
		{{#teleporter "main"}}
	</div>
</div>
{{#include "/app-pages/pages/public/bottom.html"}}
<script type="text/vm">
	function(vm) {
		Path.registerjSouperRoute(["/main/:main_page?","/main.html"], function(loc) {
			var _emit_lock = true;
			var main_page = this.params.main_page;
			console.log(main_page);
			return ({
				stop_emit:true,//因为是2级路由，事件已经出发过了，阻止事件再次捕获触发
				href: loc.href,
				html: "/app-pages/pages/pc/main/",
				js: "/app-pages/js/pc/main/",
				css: "/app-pages/css/pc/main/",
				prefix: "/main/", //URL-pathname中无用的前缀部分，用来过滤href得出pagename
				tel: "main",
				default: "main",
				pagename_handler: function(pagename) { //过滤出来的pagename在这里处理·二次处理pagename
					if(pagename===".html"){
						return "main"
					}
					//过滤掉后缀
					return jSouper.$.lst(pagename, ".") || pagename;
				},
				index: 1,
				vm: vm
			});
		});
	}
</script>
